Changed weird use-permissions system. And bug fix for ticket 57.