Got --debug mode and normal mode working.