Adding calculator function.