Added a new function