Add command logging