Tried to prevent potential resource leak on sockets
Added sequoia trees to generation
Formatted code