Updated command logging