Implemented next period functionality