Added support for parameters in functions. But still not working properly.