Improvements to periodic scripts.