Some improvements to utility scripts and implementation of the model with periodicity.