Fixed bug with argument parsing and removed debug messages.