Added Day and night Functions