Implement authorisation routine