Added permit types, as well as implemented a few more save features.