Clear out code and fix interval not being cleared