I have produced a model on the gravitational lensing effect based on the Schwarzschild universe. I am finding that the program is behaving differently each time I press the reset button, and consequently I have to press it a few times before it resets to the conditional settings I have placed. This effects the photon's initial position and consequently the results produced by the ODE. Due to the inconsistent nature of this I believe the problem may be with EJS and not with my code (although I could be wrong!). I am also finding that sometimes the program works exactly as I have programmed it to and other times it is almost as if it has a mind of its own. Any help with this would be greatly appreciated.