Added Command logging