Updated to be able to track permits.