refs #20: Updated code to remove deprecation error.