Deprectated method.