Now dynamically defines function and dispatches to pattern matcher
Removed version file