Add onexpression and oncomplete callbacks.