Implemented async resource loading.