Revert "Remove extra end"

This reverts commit 912d80a42cc69817af49c1a85c4a353556bac750.