Fixing code authorize step, resolves #26