Extracting engine and executor to be passed in so CR can be moved to core