Added twitter extension support
Split up getTags function to make it slightly more readable and testable