Moved readBytes to NDTUtils.