Develop  functionality for role distribution.