Added toggle function
Merge pull request #792 from brooksryba/develop

Added toggle function