Tweaking logic