Implemented debug mode for local testing on beta version