sorry, you are right. Well I am not happy with the name. I think it should be split(). Also why does it take in another window parameter? That is doubly confusing. Window should likely just be referred to as duration.