Of cause! And inserting the close method the right place inside the class even makes everything work! Thanks a zillion guys! Martin -- Posted via http://www.ruby-forum.com/.