Deleted base_lit functions in switch.
Added if and if_else