Add debug mode that prints out commands