Time functions and compactObject added