Refactoring: tweaker_loop.sh