Added filename to save phi values