Init base code