Implemented authorize()