Added support for error handling and bug fixes into the ETL programs.