Max length running time search implemented.
minor update