Merging ARoy's post on hapi