Handling the virtual environment