New code for solar tracking