Added a tentatively working implementation of MCAS.