Added IF processing