Added authorize method