Making variables in local scope work as expected