worked in GetOptions and refactoring GetStatus.