Added toggle method.