Added quotes around filename variables to support spaces in the path.