Added queue
Minor changes
Added example