Added a Debug mode.
Fixed a bug with multiple requests to the server