Refactor into two separate tools.
Keep samples within bounds.