Added dispose method.