Modified version of toggles open source project.