Adding explicit Java functions