Added compiling of global and local function calls