Change to use preferences to get the recording stop time