Added API for generic cell cost calculations