Removed the recidual argument "listfiles" which was serving no purpose