Changed Vector<Function> to Listeners class.