I removed the local periodInMinutes.