Added successor insert function