Adapting detecting module to new protocol.