[Very WIP] Skeleton code for duplicate action checking. I'm busy.