Clean permissions and add miscellaneous