Fixing uptime never working.

Also adding some debugging print text that helped me in using this.
Merge pull request #1 from icbat/patch-1

Fixing uptime never working.