Moving variable into block