Added a lot of stuff to resources managing.