Permission creation and cleaning now working