Adds losing function.