External storage support. Variables overhaul.