added time to be a default of 5 if no time has been specified.