Fixed Issue with time not being declared