Added Flag manager to make input parameters more extensible and robust