Initial implementation of adding resource