Further updates to createRoles for logging