Refactoring receiver queue into separate class.