Fixed cool function