Added MathLibrary Functionality