Added sanity check to 3-argument module call.
Merge pull request #1 from ackwell/patch-1

Added sanity check to 3-argument module call.