Refactored Consumer Task