Setting up environments and settings