Functions.java

special functions used by different modules