Add time to factroy
Fix Code