Added replaced debug var with --debug flag