Finish the share machine logic.