Added parameter to zinternal function