Thanks Martin this is easy now to implement using new hooks.