Fixed the tweet delay logic and other fixes