Refs #12 Added variable window length