The timeline is saved per SOC in a couple of system vars stored in the database. We should use these to get the current stage we are in.