Changed authorized to parameter so that it can be overridden manually for each call