Added 'set -o nounset' to prevent unset variables
Seperated configuration from the actual script