Added pwrite call.