Adding support for base < 5
Merge pull request #58 from plaprade/base5

Adding support for base < 5