Removed onDisabled code never runs.