Removed unused import
Added command profiling