Add resource loading functions.