Another attempt at limiting brush effects