Modified to make it controllable by a single var.
Merge pull request #15 from lwade/master

Modified to make it controllable by a single var.