Removed unused apply() code