Removed old code. carp instead of croak.