Reduced number of declarations within function