Added functions to detect sequence collisions