Added a new way to find the squares.