Began implementation of checkbox behaviour.