Thread options record through run functions
Use logging option to control logging