Adapted the QueueRepositories library interfaces to our real needs.