Passing the tweets into the function correctly