Fixed looping error and also fixed index settings. Also started catcher
class.