Removing unnecessary "thread" declaration