Updated callbacks to match node conventions.