Added if function (again).