Added phase variable