Survey function added