Math library updates