Restored old method for int weights for backwards compatibility