Updated fwrite code