Permission handling is now moving to a seperate file