Initial implementation of resource manager.