Added simple phase passing.