Improved TweakBar code interface