Implementing code to prepare the work from the server for the miners.