Added constraints to ratings and drivers input.