Removed unnecessary elseif branch