Tweak notes code