Replaced ID creation and comparison by matcher function, which compares
the objects directly (Thanks to Simon!)