Make user functions more generalised so other maintenance scripts can use them