Updated note script