Functions used to share the samples does not seem to work as intended