Fixed missing parameters
Added support for calling java functions