Modified if statement to exclude elseif and use else instead.