First pass of store code