Nearly finished the bid functionality