Added GetResPool function