Add calculator function.