Don't need max anymore. Was experimenting with another algorithm.