added -l command line option to set number of xs lookups