OK, sounds reasonable. So do not forget to remove those patterns and what is more important document in code or place link to related place, when you discover how it works as it looks to me quite unintuitive ( and was probably problem of Xvnc )