Rename mainImpl() to process().