Added some toggle functionality.