simple-status: Changed to mostly use local variables instead of globals.