Added profiling support for commands