This is far from perfect, but its a start. Ideally, the value would be set in the display component instead.