Move MCPI methods to its own file