Why using a function?