Fixed typo, removed unnecessary function