End message not working for some reason, otherwise everything works