Fixed mistake with atom
Find max works..