Some modifications to the note rendering code