Updated to use config file and removed hard-coded path.