Added getConnection() method.