Added code to setup permissions
Added setup code for the permissions