Rewrote rename-method to use deferreds.