Use val instead of def.