Added working ondrive code with time