Combining resource loader into one function