Added prototype code to insert "use Carp"