Change the parse functions from local scope to Thread class methods.