Added a custom function