Removing debug output and adding redirect_uri