Fixing and gathering impulse to get to the end