Added resource management.
Can save edited resource counts.