Clean up some duplication.
Load and save variables. #10