security_distance as a script parameter