added max option