Added functions to Dispacher.java