Use magic-platform. Closes #765