Why do you need to log here? Can we remove this?