Implemented phase transitions