Added handling of msg NEED_COST