Setting permissions and other fun things.