Alot of changes for MX, code changes for c03ref, f16ref and g18ref