Added action CLI argument (no actions yet though)
Fix bug when freeing regions