Implemented pool update. Correct error handling is still needed.