Using tmp variable