Added support for pre method
Merge pull request #2 from mmerkes/master

Added support for pre method