Rename close to clear
Refactor
Add pool generation