Get lgReadIndex to compile