How permits work