Added a couple more helper function. Mainly one to write the unit declarations for the hub.