Update functions.java