Changed elseif into if!