Reorder functions inside the file so they follow the order in which they are called