Made getTweets function accept appropriate parameters, allowing it to be dynamic.