Notes.
Cleaning.
Added idx fn.