Added "when distance <" block