Added security measures. Closes #65.