Added check to not do fisrt phase again