Working on compilation of global functions