Fix R16 compatibility (stop using pmod)
Merge pull request #19 from tuncer/r16

Fix R16 compatibility (stop using pmod)