Better error detection and user prompting in setup file.