Tightened up the positions in the lead down and up
Improved the code