New APIs: set-attach-method, get-attach-method.