Added global functions as handlers support.