Minor improvements in error handling and memory allocation.