Convert 1.9 to 1.8 syntax. Fixes #23