Fixed resultFactory bug; added approach for core capacity constraint