Added logging of time taken by each command