Removed if else switch idiocy.