Edited function calls in main. jphi is passed to elliptic step().