Change signature of worker functions to support args as object instead of array