Put hello handler into separate function.