Moved model loading outside of messaging loop