Added Distance and Range Check Functions

Need Testing...