Setting up environment and mod