Finish the basic function to move up / down.