Adds basic toggle functionality