Implemented a SimpleObjectPool
and moved some code around.