Added other ways of calling functions from java