Profit for second straight year amid record revenue