Replace Type[] occurences by [Type*]
Modify build function to be a wrapper around runEngine function