Rewired synonym code extensively.
Restored checking for duplicates.
Added a timer check to make sure we don't spend too much time checking for duplication.