Added function and a test for it. CC at 100%