Improve the ack search