Simplified API by automatically distinguishing between engine and connection. Added warnings