Prepare seconds and error check