Fixed command and added debug.