Added logging, to check for any unforeseen bugs in workers