Added binary functions on the graphical model.