Delete unnecessary function