Adds functioning while test.