Start refactoring inference engine.
Move execution logic to Executor class.