Some cleanup on taskID / euclidean algorithm code