Bounded control

Should this be merged? As far as I can see, there were no further problems with it. It should fix #1037.