Added some features for authorisation.