Added permission script. Closes #65