Added ability to provide a function for the base option
Merge pull request #23 from mediarain/master

Added ability to provide a function for the base option