Init base application code