Set loaded flag to prevent multiple loads