Modified error handling. Removed check_errors -> access by property instead