Add add queue functionality

Adding ```add queue``` functionality. Not sure about everything in this, so please take a look on it.