-Problems with debugging, no testing until fixed
Fixed gettime functionality