Error checking in Utils functions and fixed update time bug