We can probably get rid of the log since we are returning the err