Refactoring to add support for multiple functions
Added support for function arguments