Setting up resources