Adding generic writer