Tidied up code. E.g. Adjusted day/night threshold.