Add mka function

w/ fixes