Added single function functionality for multiple calls to the same function