Add support for instance weights file