- Added two methods for max cost