Move the full algorithm to its place