Added simple write method.