Testing role systems

Removed unused functions