Setting up resources and basic structure