Moved some functions to queueprovider and renamed interfaces