Agreed, this should be an input. Changing to input also means that much of the complexity for handling and manipulating the input value can be reverted.