Updated code to share to Twitter.