Added dispose() method