Added precision parameter for ranking