Added registration. Fixed index.