Period test program and tidy-up.