Update with logging functionality