Write results method fixed