Error from Building Pool based on Uray's code