Eventually perfect detector