Added max capactity checker