[sleepwalker] peak detector implemented.