Added fault tolerance for illegal pointer index values