IF statement implemented. But type is slightly bad ...
Refactor IF