Refactored twitter repository with scheduler