Changed applyStatusToAllAgents to use timestamps to set initial status