Getting resource adding working