Add phase deviation analysis in Julia as an example