Fixed write method