Working with resource