Adding collections whitelist

As discussed in #1 and #3, I've implemented collections whitelist.
Please suggest new function and variable names if you different ones.