Use tables of callbacks for the functions.