Fixed some problems with timekeeping and the client window.