Fixed the new CLMath functions. Should probably test new code before I commit it in the future.