Added resource loading.