Added initial support for simple ifs.