Setting up and assigning roles