A timer activates the lights in the morning and step by step turns them out in the evening so that the birds can enjoy an optimal rest period

Could you correct the punctuation please?
A timer activates the lights in the morning and step by step turns them out in the evening, so that the birds can enjoy an optimal rest period.