An adaptive method to focusing in an unknown scenario