Improvements to Twitter plugin