Update where appropriate, check writeResult properly