Add appData property and selectRole() method.