Updating resin to add calc function