Added RunAction.  Fixed a bug in period calculation.