changed timeout and warning time to seconds