The phases parameter must be at least 2.