Removed duplicate import statement for threading