Added logging for parse error