Add auth mechanism. Not tested. Need feedback from users.