Modified the time() function to be useable. It now returns a map.