Changed where I import the long_periods function from!