Finished basic Cohrent UI integration (with some minor bugs).