Added 'collections' method and exceptions support