Add disabled() function and make use of it.