Added support for purify