Added the ability to register an export operation hook