Rearranged some of the code in follow path so its in a more logical order.