Improved error messages and added support for con files.