Added missing dependencies
bug fixed time variable name