Add .dispose() method.