Implement first-func in worker