Modified getFriends function to limit amount of retrieved friends for
debugging.