Took out recursive method.