Debug and Value functionality addded