Beware of memory-leaks, the garbage-collection seems to 'oversee' dynamically created functions!