Efficient use of gadgets