Added base (mostly copied and extended from EasyMineLauncher).