Changed to X value rather than magnitude value