1. Eliminated some memory leaks by replacing calls to