Storing currenttime in common variable.
Fixed after splitting filename & extension. #8