The code behind Gears