Import updates

Had to import the datetime and time packages. Found some errors during
execution.