what is permit used for?