Initial implementation of indexedFdd and a LOT of changes :D