Improvements on promote and store. Logging is now to file.