Isolating Twitter API functions.