Moved permissions to yml and classed callbacks