Added permissions. Preparing for Heroku.