More cleanup. configTest and lasIndex working