Started writing a method to detect beacon distance