Implement compunitmainline.