Added resource loader support.