Added 'if' and 'range' functions.