Modifying Pool to accept objects automatically