Check smoothVar if statements! The equation is weird