Fixes #27. Failing test cases are ok for now.