Move to Engine class.