Added a first() helper function