Move note function to inside Darwin block