Switched if statement to use ternary operator.
Added LilySpy switch.