Setting permissions on sources and fixing various bugs with NAA import.