Added mathematical function.