Implemented permissions, close #23