Changed a "EXIT" from an IF construction as this is non-standard