Sorting handlers by inheritance.
Working on configuration.