Add function to run calculations through dc