Changed index for SEC to be centred on the window, not the start of the window.