Making methods private, setting getBeacons to run in background.