Implemented PIC function calling