Added function and updated testing