Removed unnecessary function