Add functioning ending