Fixed shared queue problem
added logger system