Added code for showing proximity detection as it happens.