Noticed that pe and ke are only hitting the first half of the array.