now runs! Still checking if it is doing everything desired....