Improved logging to figure out how long it takes to process a command