Reworked the new symmetry-finding function and made it funcitonal