Declare 'dist' as local