Added support for wingifying functions following the module pattern.