Added ProcessIndex method skeleton, currently it is a big switch statement