Refixed all the jumping logic.