Export setCustomVar

I think you meant to export this method (and possibly others?)