Removed an unnecessary function