Rename gadgets to ease understanding the logic.