Started implementing the S3Index. Compiles but doesn't yet fully work.