Add first() helper function for looping.