Replace code with pre-existing method.