Refreshes to code and new permissions system