Trying to add threading