Added common init method