Implemented queue events handling