Set the specified role. Fixes #421