Reworked code for hybridauth debug on