Added debugging queue routine