Was using wrong argument number in calc library.