Added deprecation warning. Fixes #128