Added popularity property and sorting based on popularity.