Added timeout options to the layer check.