Moving the usage to a function