Create correct state resource managing