Added first_line function