Fixed the initial error - need to figure out what's wrong with the epoch window reset now.