Added flip, id and constant to Functions.java