Implementing IF in the back-end.