Potential bugs noted in comments.