Modified common init method.