Compressed some elseif statements.