Use pipeline function structure