Refactored the bid model.