Started rewriting resource dependency loader