Changes to tweet function