Fixing bug so base period isn't greater than data length.