Added variable for verbosity level and restructured code to put settings at the top