Outlined SetNote function