Refactor dots executable.