Added some debug messages for the command function.

This should help while developing.