Added support for nicer function defs.
Added example for global work sharing.