Move $skip_pools populating to function
Merge pull request #31 from Alexqw/populate_skip_pools

Move $skip_pools populating to function