Changed how synchronization functions are detected