Refactored if and elseif; became standoffish on Linux