Added ability to optimize using running hints