Added code to call a function