Added command logging