Add a ifelse statement and a Context object.