Added R5 index generation to the build