Added input for default distance value.
Updated example.