Added function - need to test it.