General cleanup, remove unnecessary globals.
slt gives JSON output