Fixed the newThread bug. Needed to be a pointer not a variable