Do some init work