Split the code between workers and clients