Added new function and NEWS file.