Fix Serializable
Avoid concurrent traversal of input by different threads