Better permissions script.