Working version, tested locally - only needs config change for deploy to heroku