Changed use of compare() to more suitable convenience method (fixes #54)