Fixed GP to work with the sliding window approach, ready for experimentation