Refactored and added more functionality to remote queue class