Adding getUptime in constructor.