Permutation, commenting, and tidying up