Change num to be an int