Reorder some tasks to try and prevent a timing error with setting marks in the ruler.