Updated how resource loading is done.