Setup environment for standalone usage.