Implimenting functioncall handler

Implimenting functioncall handler