Added function callback registration, and simple algebra constructs.