Added swap node contents method