Removed prepare boolean in ResourceManager and added that after executing ResourceManager the ProcessManager is executed