Added possibility to pass function inside invocation of another function