refs #4: handled deprecation warning.