One at a time function with test.