Fixed queue and added example