Extracted twitter behaviour to main.py