Added queue implementation