Added role checking.