Added function call functionality