Moved permissions to seperate file and simplified them