Adding load text function