Problem with the Math class using SDK 3.0