Placed functions in the correct order