Check for existing options before defining
Refactor some logic