Fixing uptime never working.

Also adding some debugging print text that helped me in using this.