Implemented Threading for spider