IF functions working properly.