Updated the end part