Added solarSplines code