Clean up data passing for the worker