Prefer defer as more idiomatic style