Bidding function.