Make a copy of it's code before getting rid of it's children