Add resource manager state, and check resource manager state using resrource manager...