Moved Sharing Code to correct location