Better creation of the razor host