Move Twitter functionality into seperate file