Working on station selection algorithm