Added Queue code (protected concept)