Wrote a little bit of smoothperms.