Keeping things in memory before writing to DB.