Quote weight variable field
Throw meaninful errors with invalid input variables