Added error for case when the name doesn't exist