Made nexus parser more robust.