Fei added max capacity functions