Fixed typo: endaddotblock => endaddtoblock