Removed usage of threading module