Use require_relative, skip on ERROR_RESOURCE_TYPE_NOT_FOUND, minor memory efficiency tweaks.