Implements ranging system. closes #17