Made an handy queue interface and implementation