Modified constructor for routing class.