Added top friends logic