Add timeout for matchHeight