First working version, only works for integers and functions calls are not supported yet