Added IF compilation