Made NEXUS parser more robust.