Simplified serialize and load method.