Declare vars as late as possible