Split out status update into its own function.