Remember to add the fin() function (also fixes #39).