Support for issue 6: module capacity is now utilized for determining number of charge units to be added