Lazy creation implemented

Hi
I did this but keep in mind that I am just a hobby programmer.
Feel free to fix thinks if you find a better way.
A good addition could be a way to handle requests over the max.
Right now if the resources are maxed out it will return "nil"

Thanks for your work!