Let's change tmp to a long over here