Added comments in decision loop to explain