Added WriteBytes helper