Moving core and Twitter API functions.