Don't allow an underflow of time_skipped, clean up code