Replace deprecated function calls with correct equivelent
Merge pull request #3 from aolley/master

Replace deprecated function calls with correct equivelent