Add early stage of magic alg