Adding time taken counter as well as functions for multiprocessing. These still aren't functional.