Added survey function

Test functions