Added check to verify if note argument is an integer