Implement first version of role checking