Added max_count