Added additional function to be threaded