Added MOVE phase to input and replaced util::Ptr with std smart-pointers.