Lots of hooks. Small index fix. Code formatting.