Added overload which accepts a ref cursor.