Adding capability to call as a function