Refactorized and added a interval to check episodes