Keep compatibility with old version

Fixes #13 Refs #7
Merge pull request #14 from hiroponz/keep-compatibility-with-old-version

Keep compatibility with old version