Make it work for 1.3.x

Closes #10.