Added code to store labels of boolean ending