Setup initial logic