Converted main index to be more Lib like.