Error handling and backward compatibility.