New functions. Test frame. New tests.