Example of distance control