Added "if" code.