Add function to write data without specifying a register