Added sample_gt for sampling a GT. Might need debugging