Recursivly find purity