Changes to proof of work code