Some optimization

Trying to prevent the turtle from getting overloaded by running in
cost_only mode