Added double-quotes around NAME to ensure spaces are dealt with properly.