Fix deprecated syntax.
Merge pull request #20 from jdutil/syntax

Fix deprecated syntax.