Added caching
Log commands to debug level