Updated popularity variable to API 1.1