Added max_keys