Exctracting barf to use elsewhere