Added ELIF

It's a bit hackish, as is the existing IF and ELSE code, but it seems to work correctly from my testing.
Additional error checking should be added.